package com.gloaba.common.core.constant;

public class SecurityConstants
{
    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "UserId";

    /**
     * 账户ID字段，兼容老框架
     */
    public static final String DETAILS_ACCOUNT_ID = "AccountId";

    /**
     * LegalName字段，兼容老框架
     */
    public static final String DETAILS_LEGAL_NAME = "LegalName";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "DisplayName";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "Guid";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login_user";

    /**
     * 角色权限
     */
    public static final String ROLE_PERMISSION = "role_permission";

    /**
     * request 请求头：clientType，请求端
     */
    public static final String REQUEST_HEADER_CLIENT_TYPE = "clientType";

    /**
     * request 请求头：userType，请求端
     */
    public static final String REQUEST_HEADER_APP_TYPE = "appType";

    public static final String TOKEN_AUTHENTICATION = "Authorization";
}
